import request from '@/utils/request'

// 查询班组长资格列表
export function listMonitor(query) {
  return request({
    url: '/system/monitor/list',
    method: 'get',
    params: query
  })
}

// 查询班组长资格详细
export function getMonitor(employeeId) {
  return request({
    url: '/system/monitor/' + employeeId,
    method: 'get'
  })
}

// 新增班组长资格
export function addMonitor(data) {
  return request({
    url: '/system/monitor',
    method: 'post',
    data: data
  })
}

// 修改班组长资格
export function updateMonitor(data) {
  return request({
    url: '/system/monitor',
    method: 'put',
    data: data
  })
}

// 删除班组长资格
export function delMonitor(employeeId) {
  return request({
    url: '/system/monitor/' + employeeId,
    method: 'delete'
  })
}
